﻿@using MealBooking.Core.Models.Accounts
@{
    Account account = ViewBag.Account;
    Customer customer = ViewBag.Customer;
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.HeaderTitle = account.Name;
}
<ul data-role="listview" data-inset="true" data-mini="true">
    <li data-role="list-divider">@account.Name</li>    
    @if (account.IsActived)
    {
        <li><span>[Actived]</span></li>
    }
    else
    {
        <li data-theme="e"><span data-theme="e">[Not Actived]</span></li>
    }
    <li>Register Time : @account.RegisterTime</li>
    <li><a href="@Url.Action("BalanceHistory", new { id = customer.Id })">
        <p>
            <strong>Balance : @customer.Balance</strong></p>
        <p>
            View Balance History...</p>
    </a></li>
    <li>Credit : @customer.Credit</li>
    <li>Comment : @account.Comment</li>
</ul>
